Skip to content

Instantly share code, notes, and snippets.

@a-partovii
a-partovii / Gist.md
Last active August 4, 2026 22:38
مشکل اتصال اینترنت برنامه کرسر (Cursor)

برای حل شدن مشکل اتصال اینترنت برنامه کرسر (Cursor) می‌توانید تنظیمات HTTP این برنامه را از تنظیمات تغییر داده و روی HTTP 1.1 تنظیم کنید.

File > Preferences > Cursor Settings > Network > change HTTP to 1.1

همچنین اگر باز هم مشکل داشتید پیشنهاد میشه از سرویس های تغییر DNS و VPN استفاده کنید.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@michel-pi
michel-pi / MessageBox.cs
Created June 20, 2021 21:48
Using NtRaiseHardError to display a MessageBox
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace Undocumented.Windows
{
public static unsafe class MessageBox
{
// http://undocumented.ntinternals.net/index.html?page=UserMode%2FUndocumented%20Functions%2FError%2FNtRaiseHardError.html
private static readonly delegate* unmanaged[Stdcall]<uint, uint, uint, uint*, uint, uint*, uint> _ntRaiseHardError;
@umbernhard
umbernhard / arch-secure-install.md
Last active August 4, 2026 22:26
Building a Secure Arch Linux Device

Building a Secure Arch Linux Device

Locking down a linux machine is getting easier by the day. Recent advancements in systemd-boot have enabled a host of features to help users ensure that their machines have not been tampered with. This guide provides a walkthrough of how to turn on many of these features during installation, as well as reasoning for why certain features help improve security.

The steps laid out below draw on a wide variety of existing resources, and in places I'll point to them rather than attempt to regurgitate full explanations of the various security components. The most significant one, which I highly encourage everyone to read, is Rod Smith's site about secure boot, which is the most comprehensive and cogent explanation of UEFI, boot managers and boot loaders, and secure boot. Another incredibly useful resources is Safeboot, which encapsulates many of the setup steps below in a Debian application.

@pythoninthegrass
pythoninthegrass / config.toml
Last active August 4, 2026 22:25
herdr config
# herdr configuration
# Place this file at ~/.config/herdr/config.toml
# Show first-run notification setup on startup.
# Missing also shows onboarding; set false after you've chosen.
# onboarding = true
[theme]
# Built-in themes: catppuccin, terminal, tokyo-night, dracula, nord,
# gruvbox, one-dark, solarized, kanagawa, rose-pine,
@BadMagic100
BadMagic100 / i2cpp_ghidra.md
Last active August 4, 2026 22:24
Instructions to get a useful decompilation out of an il2cpp game. Or, "I spent hours to trial and error so hopefully you won't have to"

Decompiling IL2CPP Games with Il2CppDumper and Ghidra

This guide will walk through how to decompile/reverse engineer IL2CPP games for modding usage.

Note: expect this entire process to take upwards of an hour. Have something ready to do on the side while waiting for processing to finish.

Prerequisites

  1. Download Il2CppDumper
#EXTM3U url-tvg="https://i.ibb.co/dBpcjkB/IMG-6206.jpg" billed-msg="WAKAOO MARKETING ONLY FOR 1 DEVICES"
####################################################################
# ==========================================
# CHINESE CHANNELS
# ==========================================
#EXTINF:-1 tvg-id="TV8" tvg-name="TV8 Malaysia" tvg-logo="https://blogger.googleusercontent.com/img/a/AVvXsEjxr2z7MtAtzXgVtzEgdAguKvnOTCNaE2rdz14I3EaagLcGeJN4AZcoc8yVBvaybSyXyGdxOUzRGzVAHJyxxbJzKRXAEvc2ZOe4WkHVmK2JjnBea8I2v27giLha-RsNnCXb47ZFAximzOsI4EGf6G0WCmiW7q8bgARRM652_y7lugCj3qEl_8aVDOKvbwni" group-title="Chinese",108 TV8 Malaysia
#KODIPROP:inputstream.adaptive.license_type=org.w3.clearkey
/* Hash without Sine https://www.shadertoy.com/view/4djSRW
Copyright (c) 2014 David Hoskins.
Copyright (c) 2022 David A Roberts <https://davidar.io/> (WGSL port)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@dexit
dexit / LanguagePacks.txt
Last active August 4, 2026 22:07
Windows 10 language pack download list
LangPacks for Windows 10 build 10.0.14393.0 (rs1_release.160715-1616)
=======================================================================================================================================
x86
=======================================================================================================================================
ar-SA http://download.windowsupdate.com/c/msdownload/update/software/updt/2016/07/lp_2d27aaac52b3449bddbf6081f934d5a0e04567f5.cab
bg-BG http://download.windowsupdate.com/c/msdownload/update/software/updt/2016/07/lp_859ef8cf0175dd8e54c68ed7939d8c5654521b6e.cab
cs-CZ http://download.windowsupdate.com/c/msdownload/update/software/updt/2016/07/lp_f3aeb974df186c213760b2fca77c12c55b4ef7f2.cab
da-DK http://download.windowsupdate.com/c/msdownload/update/software/updt/2016/07/lp_9334cac301decb6bc155eba301db796171167629.cab
de-DE http://download.windowsupdate.com/c/msdownload/update/software/updt/2016/07/lp_b142c3c021284f6c90eaff7fc59bdaabb6573d72.
@hankei6km
hankei6km / docker_events_-n_1.md
Created February 26, 2018 03:30
docker events コマンドで最初のイベントが発生したらコマンドを停止させる

docker events コマンドで最初のイベントが発生したらコマンドを停止させる

docker events で「コンテナの開始を補足したら docker event を停止させたい」 といったようなときがある(かもしれない).

だが、そういったオプションはないようなのでメモ.

とりあえず以下の方法で停止している(が、しかし、sh だと動かない).